package com.model;

import java.util.Date;

public class SaleOrder {
	private int id;
	private String saleOrderNo;
	private Customer customer;
	private double total;
	private Date createDateTime;
	private int state;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSaleOrderNo() {
		return saleOrderNo;
	}

	public void setSaleOrderNo(String saleOrderNo) {
		this.saleOrderNo = saleOrderNo;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public double getTotal() {
		return total;
	}

	public void setTotal(double total) {
		this.total = total;
	}

	public Date getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(Date createDateTime) {
		this.createDateTime = createDateTime;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	@Override
	public String toString() {
		return "SaleOrder [id=" + id + ", saleOrderNo=" + saleOrderNo
				+ ", customer=" + customer + ", total=" + total
				+ ", createDateTime=" + createDateTime + ", state=" + state
				+ "]";
	}
}
